<template>
  <portalTable
    :height="cTableHeight"
    :tableData="tableData"
    :columnData="columnData"
    v-loading="isLoading"
    @rowClick="rowClickFun"
  >
    <template slot="state" slot-scope="{data}">
      <Icon
        :type="changStatusFun(data.row.state).icon"
        :color="changStatusFun(data.row.state).color"
        custom="doneIcon"
      ></Icon>
      <span>{{data.row.state==='1'?"未处理":"处理"}}</span>
    </template>
  </portalTable>
</template>

<script>
import portalTable from "@/components/portalTable";
import bussinessTableMix from "../mixins/BussinessTable";
import config from "../mixins/config"; // table高度设置
export default {
  name: "BusinessToDo",
  mixins: [bussinessTableMix, config],
  props: {
    height: {
      type: [String, Number],
      default: 200
    }
  },
  components: {
    portalTable
  },
  data () {
    return {
      params: {
        state: 1
      },
      name: "BusinessToDo"
    };
  },
  methods: {
    rowClickFun ({ row, column, event }) {
      this.$emit("rowClickFun", { row, column, event });
    }
  }
};
</script>

<style>
</style>